/*
    Copyright (C) 2010, 2012 Daniel Gutson and Hugo Arregui, FuDePAN

    This file is part of Biopp.

    Biopp is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Biopp is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Biopp.  If not, see <http://www.gnu.org/licenses/>.

    NOTE: This file is in prototype stage, and is under active development.
*/

#ifndef BIO_ALPHABET_INLINE_H
#error Internal header file, DO NOT include this.
#endif

// Conversions:
template <class Next>
template <class N>
inline void AUCG_Alphabet<Next>::operator=(const ATCG_Alphabet<N>& atcg)
{
    const char c = atcg.as_char();
    if (c == 't')
        operator=('u');
    else
        operator=(c);
}

template <class Next>
template <class N>
inline void AUCG_Alphabet<Next>::operator=(const AXCG_Alphabet<N>& axcg)
{
    operator=(axcg.as_char());
}

template <class Next>
template <class N>
inline void ATCG_Alphabet<Next>::operator=(const AUCG_Alphabet<N>& aucg)
{
    const char c = aucg.as_char();
    if (c == 'u')
        operator=('t');
    else
        operator=(c);
}

template <class Next>
template <class N>
inline void ATCG_Alphabet<Next>::operator=(const AXCG_Alphabet<N>& axcg)
{
    const char c = axcg.as_char();
    if (c == 'u')
        operator=('t');
    else
        operator=(c);
}

template <class Next>
template <class N>
inline void AXCG_Alphabet<Next>::operator=(const ATCG_Alphabet<N>& atcg)
{
    const char c = atcg.as_char();
    if (c == 't')
        operator=('u');
    else
        operator=(c);
}

template <class Next>
template <class N>
inline void AXCG_Alphabet<Next>::operator=(const AUCG_Alphabet<N>& aucg)
{
    operator=(aucg.as_char());
}
